package com.sgcc.nrxt.crmdemo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.io.Serializable;

/**
 * (Custom)实体类
 *
 * @author makejava
 * @since 2023-10-30 10:11:45
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("custom")
public class Custom implements Serializable {
    private static final long serialVersionUID = 549253705393477895L;
    /**
     * 主键
     */
    @TableField("id")
    private Integer id;
    /**
     * 客户来源
     */
    @TableField("source")
    private String source;
    /**
     * 公司
     */
    @TableField("company")
    private String company;
    /**
     * 客户等级
     */
    @TableField("level")
    private String level;
    /**
     * 客户级别
     */
    @TableField("followStatus")
    private String followStatus;
    /**
     * 客户类别
     */
    @TableField("category")
    private Integer category;
    /**
     * 简介
     */
    @TableField("introduction")
    private String introduction;
    /**
     * 邮箱
     */
    @TableField("email")
    private String email;
    /**
     * 所属地区
     */
    @TableField("district")
    private String district;
    /**
     * 信用代码
     */
    @TableField("creditCode")
    private String creditCode;
    /**
     * 客户联系人
     */
    @TableField("contacts")
    private String contacts;
    /**
     * 性别
     */
    @TableField("sex")
    private String sex;
    /**
     * 生日
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField("birthday")
    private String birthday;
    /**
     * 职位
     */
    @TableField("appointment")
    private String appointment;
    /**
     * 电话
     */
    @TableField("tel")
    private String tel;
    /**
     * 意向产品
     */
    @TableField("intendedProducts")
    private String intendedProducts;
    /**
     * 跟进时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField("followTime")
    private Date followTime;
    /**
     * 备注
     */
    @TableField("note")
    private String note;
    /**
     * 用户id
     */
    @TableField("userId")
    private Integer userId;

}

